/* MongoDB schema for Disease API model */

var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var DiseaseSchemaModel = new Schema({
    id   : { type: Number, required: true },
    name : { type: String, required: true }, 
    area : String,
    links : {
        genes : [Number]
    }
});

exports.Disease = DiseaseSchemaModel;

var DiseaseSchema = exports.DiseaseSchema = mongoose.model('Disease', DiseaseSchemaModel, 'diseases');
